import request from '@/utils/request'

export function getCateListApi(params) {
  return request({
    url: '/content/cate',
    method: 'get',
    params
  })
}
export function getCateAllApi() {
  return request({
    url: '/ydd_cate/all',
    method: 'get'
  })
}
export function getCateInfoApi(id) {
  return request({
    url: '/content/cate/' + id,
    method: 'get'
  })
}
export function editCateApi(data) {
  return request({
    url: '/content/cate/' + data.id,
    method: 'PUT',
    data
  })
}
export function addCateApi(data) {
  return request({
    url: '/content/cate',
    method: 'post',
    data
  })
}
// 删除
export function delCateApi(id) {
  return request({
    url: '/content/cate/' + id,
    method: 'DELETE'
  })
}
